AddButton(ButtonString)

Adds a button to the Container block.

The button string must be HTML code. This HTML code is added after the other buttons are drawn. The easiest way to get the HTML for the button is to use the Button method.

Parameters

ButtonString. Specifies HTML code to render the button. This should be a link within a <table> tag in the ASP page. This parameter accepts a string value.

Examples

R = CRM.FindRecord('Company','Comp_CompanyId=1');
Holder = CRM.GetBlock('companyboxlong');
Holder.AddButton(CRM.Button("Try This","new.gif",CRM.Url("AnotherPage.asp")));
CRM.AddContent(Holder.Execute(R));
Response.Write(CRM.GetPage());

Adds a button named Try This to the company summary block.